package com.bayes.teamshow.service;

import com.bayes.teamshow.dao.UserManageRepository;
import com.bayes.teamshow.pojo.UserBackground;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class UserManagelmp {
    @Autowired
    UserManageRepository userManageRepository;

    public void deleteUser(long uid){
        userManageRepository.deleteById(uid);
    }

    //分页无条件查询
    public Page<UserBackground> findAll(Pageable pageable) {
        return userManageRepository.findAll(pageable);
    }
}
